import React, { useState, useEffect } from 'react';
import { Table, Tag } from 'antd';
import { request } from 'umi';

const List = (props) => {
  return (
    <>
      <Table
        columns={[
          {
            dataIndex: 'FullName',
            title: '发行主体',
          },
          {
            dataIndex: 'LongTermRating',
            title: '外部评级',
          },
          {
            dataIndex: 'RatingProspect',
            title: '外部展望',
          },
          {
            dataIndex: 'RatingInstitution',
            title: '外部评级机构',
          },
          {
            dataIndex: 'RatingDate',
            title: '外部评级时间',
          },
          {
            dataIndex: 'PublicOpinionRiskLevel',
            title: '辅助风险评级',
            width: '140px',
          },
          {
            dataIndex: 'PublicOpinionRiskIndex',
            title: '舆情风险指数',
            width: '140px',
          },
          // {
          //   dataIndex: 'enterprise_type',
          //   title: '企业性质',
          //   width: '140px',
          // },
          // {
          //   dataIndex: 'enterprise_industry',
          //   title: '所属行业',
          //   width: '140px',
          // },
        ]}
        pagination={{
          // showQuickJumper: true,
          defaultPageSize: 15,
        }}
        dataSource={props.dataSource}
      />
    </>
  );
};

export default List;
